Harmonic sensor

ABSTRACT

A fly height control system includes a weighting function module. The weighting function module applies coefficients from a window function in a time domain to digital samples to provide weighted samples. A first of the coefficients is applied to a first of the digital samples and a second of the coefficients is applied to a second of the digital samples. The first of the coefficients has a first magnitude that is different than a second magnitude of the second of the coefficients. The system also includes a harmonic sensor module that estimates a magnitude of a frequency in a frequency domain based on the weighted samples. The system also includes a head height control module that determines a height of a read/write head over a storage medium based on the magnitude of the frequency.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of U.S. Provisional Application No. 61/110,331, filed on Oct. 31, 2008. The disclosure of the above application is incorporated herein by reference in its entirety.

FIELD

The present disclosure relates to a data storage medium. More particularly, the present disclosure relates to using a harmonic sensor to determine fly height of a read/write head over the data storage medium.

BACKGROUND

The background description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent the work is described in this background section, as well as aspects of the description that may not otherwise qualify as prior art at the time of filing, are neither expressly nor impliedly admitted as prior art against the present disclosure.

Complex signals can be represented in a time and/or a frequency domain. Signals may be transformed from the time domain to the frequency domain and vice versa. Transformation from the time domain to the frequency domain may be implemented by a Fourier transform. The Fourier transform provides a spectrum of frequency components (i.e., spectra), referred to as “harmonics,” each of which has a corresponding magnitude. Considered together, the signal spectra constitute a frequency domain representation of a given signal.

One notable use of such a transformation, is to electronically determine the fly height of a read/write head in a hard disk drive (HDD). The fly height is the height of the head relative to a recording medium.

Methods for detecting fly height generally employ detecting a known pattern written on the storage medium. In response to detecting the pattern, the head produces a signal. A ratio in harmonic magnitude of the fundamental frequency (i.e. first harmonic (Fc)) and corresponding third harmonic (3Fc) of the signal may directly correlate to a change in fly height (ΔD) of the head. This relationship may be expressed as: ΔD=|3Fc|÷|Fc|

In storage media systems, fly height of the head is often maintained within a prescribed region. If the fly height is too great, the signals transmitted and read by the head may be too weak for accurate data storage and retrieval. If the fly height is too small, the head may physically contact the medium, causing damage to the medium and/or loss of the data stored on the medium.

SUMMARY

A fly height control system includes a weighting function module. The weighting function module applies coefficients from a window function in a time domain to digital samples to provide weighted samples. A first of the coefficients is applied to a first of the digital samples and a second of the coefficients is applied to a second of the digital samples. The first of the coefficients has a first magnitude that is different than a second magnitude of the second of the coefficients. The system also includes a harmonic sensor module to estimate a magnitude of a frequency in a frequency domain based on the weighted samples. The system also includes a head height control module determine a height of a read/write head over a storage medium based on the magnitude of the frequency.

In other features, the frequency in the frequency domain is a first frequency; and the harmonic sensor module is a first harmonic sensor module. The system further comprises a second harmonic sensor module to estimate a magnitude of a second frequency in the frequency domain based on the weighted samples. The head height control module determines the height of the read/write head over the storage medium based on the magnitude of the first frequency and the magnitude of the second frequency.

In other features, the first harmonic sensor module performs a first discrete Fourier transform on the weighted samples to estimate the magnitude of the first frequency. The second harmonic sensor module performs a second discrete Fourier transform on the weighted samples to estimate the magnitude of the second frequency.

In other features, the head height control module determines the height of the read/write head over the storage medium based on a ratio of the magnitude of the first frequency to the magnitude of the second frequency. The head height control module adjusts the height of the read/write head over the storage medium when the ratio indicates that the height of the read/write head over the storage medium is outside of a predetermined range. The first frequency corresponds to a first harmonic of at least one data pulse from the read/write head, and the second frequency corresponds to a third harmonic of the at least one data pulse.

In still other features, the systems and methods described above are implemented by a computer program executed by one or more processors. The computer program can reside on a computer readable medium such as but not limited to memory, nonvolatile data storage, and/or other suitable tangible storage mediums.

Further areas of applicability of the present disclosure will become apparent from the detailed description, the claims and the drawings. The detailed description and specific examples are intended for purposes of illustration only and are not intended to limit the scope of the disclosure.

BRIEF DESCRIPTION OF DRAWINGS

The present disclosure will become more fully understood from the detailed description and the accompanying drawings, wherein:

FIG. 1 is a high level schematic diagram of a read/write head for a hard disk drive;

FIG. 2 illustrates a plot of magnitude versus frequency for various pulse densities;

FIG. 3A is a block diagram of a hard disk drive system according to the present disclosure;

FIG. 3B is a block diagram of a R/W channel for the hard disk drive system according to the present disclosure;

FIG. 3C is a block diagram of a R/W channel for the hard disk drive system according to the present disclosure;

FIG. 4 illustrates examples of time domain window functions according to the present disclosure;

FIG. 5 illustrates a comparison of window function spectra according to the present disclosure;

FIG. 6 illustrates harmonic ratios for a 4T pattern according to the prior art;

FIG. 7 illustrates magnitude versus frequency for random patterns absent window function weighting;

FIG. 8 illustrates a magnitude of the output of a first harmonic sensor module divided by a magnitude of the output of a second harmonic sensor module for various patterns absent window function weighting; and

FIG. 9 is a block diagram of a head height control module according to the present disclosure.

DESCRIPTION

The following description is merely exemplary in nature and is in no way intended to limit the disclosure, its application, or uses. For purposes of clarity, the same reference numbers will be used in the drawings to identify similar elements. As used herein, the phrase at least one of A, B, and C should be construed to mean a logical (A or B or C), using a non-exclusive logical OR. It should be understood that steps within a method may be executed in different order without altering the principles of the present disclosure.

As used herein, the term module refers to, is part of, or includes an Application Specific Integrated Circuit (ASIC), an electronic circuit, a processor (shared, dedicated, or group) and/or memory (shared, dedicated, or group) that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable hardware components that provide the described functionality.

Typically, predetermined test patterns are written and then read-out of a storage medium as pulses. The pulses are used determine and adjust fly height of a transducer over the storage medium. An example of a transducer is a read/write head of a hard disk drive (HDD).

A read/write (R/W) channel (also referred to as a recording channel) of the present disclosure includes harmonic sensors. The harmonic sensors receive analog to digital samples from an analog to digital converter (ADC) that are based on pulses from the head. The harmonic sensors provide outputs that are used to estimate fly height based on random or pseudo-random data.

In one embodiment, the R/W channel applies a time-domain window over the ADC samples before they are received by the harmonic sensors. The time-domain window weights the ADC samples according to a predetermined pattern. Weighting may be provided by multiplying coefficients provided by the window function to incoming samples. The harmonic sensors use the windowed samples to estimate spectrums of signals from the head. The window reduces dependency of spectrum estimation of the harmonic sensors on the particular random data pattern written. An example of a random pattern is a data pattern written to a data field.

The harmonic sensors may provide discrete Fourier transforms (DFTs) at various frequencies based on the time-domain window and ADC samples. A head height control module may sum the DFTs for the various frequencies and estimate and adjust head height based on the sums, as will be discussed herein.

Referring now to FIG. 1, when writing data, a write current is generated that flows through the head 106. The write current is switched to produce a magnetic field having a positive or negative polarity. The positive or negative polarity is stored by the medium 107 as a magnetic transition representing data. In other words, a transition 130 indicates a transition from a positive polarity to a negative polarity or vice versa. When reading data, the head 106 provides a pulse based on the transition 130.

The pulse may correspond to a single transition pulse or a dibit transition pulse. For a dibit pulse, a binary “1” may be encoded as a pair of magnetic transitions spaced one bit apart. A binary “0” may be encoded as the absence of any transitions in a particular location on the medium 107.

In FIG. 1, the head 106 is illustrated at two different heights relative to the medium 107. The first height D1 corresponds to the head 106 flying close to the medium 107. The second height D2 corresponds to the head 106 flying further away from the medium 107 than at the first height.

As the head 106 flies close to the medium 107, magnetic field lines 134 are tightly bunched causing a sharp transition 130. In other words, the head 106 takes a relatively short amount of time to pass the field lines 134 over the transition 130 and provide a pulse based on the transition 130. Therefore, the pulse width (PW) may be relatively small.

When the fly height is higher, the field lines 136 are further apart, and the transition 130 maybe more gradual. In other words, the head 106 takes a relatively large amount of time to pass the field lines 136 over the transition 130 and provide a pulse based on the transition 130. The pulse width for the gradual transition may be larger than the pulse width for the sharp transition. Increases in pulse width have corresponding increases in pulse density. Thus, the pulse density, also referred to as channel bit density (CBD), may be higher for the gradual transition. Fly height may therefore be determined based on pulse density.

In one embodiment, CBD=PW₅₀ /T.  (1) T is the symbol duration and PW₅₀ is the pulse width at the half-amplitude point of the pulse. PW₅₀ for the head 106 may be approximated by: PW₅₀≈√{square root over (2g²+4(d+a)²)}  (2) where g is the gap of the head, a is the transition length, and d is the fly height. Once pulse density is known, equations (1) and (2) can be used to determine the fly height d. Thus, the higher fly height corresponds to a higher pulse density.

When the head 106 encounters a transition on the medium 107, the head 106 generates a signal s(t) that can be modeled by:

$\begin{matrix} {{{s(t)} = \frac{1}{1 + \left( \frac{2t}{{PW}_{50}} \right)^{2}}},} & (3) \end{matrix}$ where t is a time variable. The signal s(t) can be written as:

$\begin{matrix} {{y(t)} = {{\sum\limits_{m}^{\;}\;{\left( {u_{m} - u_{m - 1}} \right){s\left( {t - {mT}} \right)}}} + {{n(t)}.}}} & (4) \end{matrix}$ U_(m) is the data stream written onto the medium 107, spaced by time T, and n(t) is the noise in the signal. After ADC sampling, the discrete-time signal (y_(k)) can be written as:

$\begin{matrix} {y_{k} = {{y({kT})} = {{\sum\limits_{m}^{\;}\;{\left( {u_{m} - u_{m - 1}} \right){s\left( {{kT} - {mT}} \right)}}} + {{n({kT})}.}}}} & (5) \end{matrix}$ Y_(k) depends on s(t), which is a function of fly height d.

Pulses from the head 106 may be translated by harmonic sensors from the time domain to the frequency domain. A ratio of a low frequency in the pulse to a high frequency in the pulse, as represented in the frequency domain, may indicate a corresponding magnitude of pulse density. For example, a low frequency harmonic (e.g., first harmonic) may be selected, and a higher frequency harmonic (e.g., third harmonic) may be selected. Therefore, the ratio of harmonics may also be used to determine fly height, as will be further discussed regarding FIG. 2.

Referring now to FIG. 2, as pulse density decreases, higher frequencies have more energy, and the ratio of the first harmonic to the third harmonic goes down. FIG. 2 illustrates a plot of magnitude versus frequency for various densities. Magnitudes can be calculated from a sum of Fourier series coefficients output from the harmonic sensors, as will be discussed herein.

Table 1 (provided below), which corresponds to FIG. 2, indicates that as the pulse density (K) increases, the ratio of the first harmonic (e.g., 1/8 Fs) to the third harmonic (e.g., 3/8 Fs) also increases.

TABLE 1 K f = ⅛ Fs f = ⅜ Fs Ratio 0.80 0.87 0.30 2.96 1.00 0.82 0.17 4.87 1.20 0.76 0.09 8.77 A first density for the pulse is represented by curve 150, a second density for the pulse is represented by curve 152 and a third density for the pulse is represented by curve 154. The first density is higher than the second density, which is higher than the third density. As pulse density decreases, higher frequencies have more energy, and the ratio of the first harmonic to the third harmonic goes down. In other words, the density may be derived from the ratio of the first harmonic to the third harmonic.

In one embodiment, the distance between the head 106 and the medium 107 increases when this occurs, the amplitude of a signal, and particularly, a third harmonic of a pulse from the head 106 is decreased in the time domain. Accordingly, the magnitude of the third harmonic output from the harmonic sensor is also decreased in the frequency domain.

Therefore, the spectrum of the pulse, and in particular, the roll-off in the frequency domain, may indicate the density of the pulse. Roll-off corresponds to the rate of loss or attenuation of a signal beyond a certain frequency. The higher the density, the faster the roll-off, and the less energy left over in the pulse signal at higher frequencies. Therefore, fly height may also be determined based on roll-off. The window functions of the present disclosure may minimize effects of undesirable frequencies in the pulses. The window functions may therefore allow the harmonic sensors to more accurately translate the harmonics into the frequency domain.

The teachings of the disclosure can be implemented in a hard disk drive (HDD) 400, an example of which is illustrated in FIG. 3A. The HDD 400 includes a hard disk assembly (HDA) 401 and a HDD PCB 402. The HDA 401 may include a storage medium 107, such as one or more platters that store data, and a read/write head 106. The head 106 may be arranged on an actuator arm 405 and may read and write data on the medium 107. The HDA 401 includes a spindle motor 406 that rotates the medium 107 and a voice-coil motor (VCM) 407 that actuates the actuator arm 405. The HDA 401 may also include a head height adjustment motor 410 that moves the head 106 closer to or further from the medium 107.

A preamplifier device 412 amplifies signals generated by the head 106 during read operations and provides signals to the read/write head 106 during write operations. The head 106 transfers data to and/or from storage medium 107 by writing transition pulses to or reading transition pulses from the medium 107.

The HDD PCB 402 includes a R/W channel module 414, a head height control module 415, a hard disk controller (HDC) module 416, a buffer 418, nonvolatile memory 420, a processor 422, a spindle/VCM driver module 424 and a height driver module 426. The R/W channel module 414 processes data received from and transmitted to the preamplifier device 412. The HDC module 416 controls components of the HDA 401 and communicates with an external device (not shown) via an I/O interface 430. The external device may include a computer, a multimedia device, a mobile computing device, etc. (not shown). The I/O interface 430 may include wireline and/or wireless communication links.

The HDC module 416 may receive data from the HDA 401, the R/W channel module 414, the head height control module 415, the buffer 418, nonvolatile memory 420, the processor 422, the spindle/VCM driver module 424, and/or the I/O interface 430. The processor 422 may process the data, including encoding, decoding, filtering, and/or formatting. The processed data may be output to the HDA 401, the R/W channel module 414, the buffer 418, nonvolatile memory 420, the processor 422, the spindle/VCM driver module 424, and/or the I/O interface 430.

The HDC module 416 may use the buffer 418 and/or nonvolatile memory 420 to store data related to the control and operation of the HDD 400. The buffer 418 may include DRAM, SDRAM, etc. The nonvolatile memory 420 may include flash memory (including NAND and NOR flash memory), phase change memory, magnetic RAM, or multi-state memory, in which each memory cell has more than two states. The spindle/VCM driver module 424 controls the spindle motor 406 and the VCM 407. The height driver module 426 controls the head height adjustment motor 410 to move the head 106 closer to or further from the medium 107. The HDD PCB 402 includes a power supply 417 that provides power to the components of the HDD 400.

Referring now to FIG. 3B, the R/W channel module 414 is shown in accordance with one embodiment of the present disclosure. The R/W channel module 414 includes an analog front end (AFE) module 520, an analog to digital converter (ADC) module 522, a finite impulse response (FIR) filter 524, a Viterbi decoder (VTB) 526, a weighting function module 527 and harmonic sensor circuit (HSC) 530-1, 530-2.

In operation, the R/W channel module 414 processes the signals from the head 106. To this end, the analog front end module 520 receives the data to/from the head 106 in the analog domain. For example, the analog front end module 520 receives and processes pulses from the pre-amplifier device 412. The analog front end module 520 may include a high pass filter (HPF) 540, a variable gain amplifier (VGA) 542 and a continuous time filter (CTF) 544.

Signals from the head 106 may be filtered and amplified through the HPF 540, VGA 542 and CTF 544. In one embodiment, the VGA 542 provides gain to signals provided from the head 106. The variable gain is controlled by an automatic gain control (AGC) loop (not shown). The VGA 542 provides control of the signal level such that the analog to digital conversion of the R/W channel module 414 is optimized. For example, increases in gain may avoid quantization noise which may impact bit error rate (BER) performance.

The CTF 544 may minimize aliasing, which may occur during analog to digital conversion. In one embodiment, the CTF 544 is a multiple pole low pass filter. The filter may be target matched with the FIR filter 524.

The ADC module 522, FIR filter 524 and Viterbi decoder 526 may perform data detection processes such as sequence detecting, bit recovery, parity processing, descrambling and the like. While FIG. 3B shows a FIR filter 524 and a Viterbi decoder 526, different types of filters decoders and/or various other digital backend components may be used.

The ADC module 522 converts the analog signals of the R/W channel module 414 to digital samples quantized in time and amplitude. The ADC module 522 may be clocked by a phase locked loop (not shown), which tracks the channel rate clock frequency.

In one embodiment, the FIR filter 524 includes a plurality of taps (or registers) and equalizes the samples from the ADC module 522. The Viterbi decoder 526 decodes the signal output from the FIR filter 524.

The HSC 530-1, 530-2 may each include a respective bank of correlators, which implement discrete Fourier transforms (DFTs) at selected frequencies.

In one embodiment, the HSC 530-1, 530-2 may include DFTs that translate the digital output of the ADC module 522 to sums of signal spectra. For example, the HSC 530-1, 530-2 may provide estimates of the sine and cosine components of the ADC module outputs, FIR filter outputs and/or Viterbi decoder outputs according to:

$\begin{matrix} {Y_{\cos} = {\sum\limits_{n}^{\;}\;{{D(n)}{\cos\left( {2\pi\;{nf}_{HSC}} \right)}}}} & (6) \\ {Y_{\sin} = {\sum\limits_{n}^{\;}\;{{D(n)}{{\sin\left( {2\pi\;{nf}_{HSC}} \right)}.}}}} & (7) \end{matrix}$ D(n) corresponds to ADC module outputs, FIR filter outputs and/or Viterbi decoder outputs (selectable via multiplexer 670), n is the sample index, f_(HSC) is a selectable DFT frequency. In one embodiment, f_(HSC) may be selected between 1/32 Fs and 1/2 Fs. Each HSC 530-1, 530-2 may have an independently selectable frequency.

In other words, the HSC 530-1, 530-2 may correspond to coarse spectrum analyzers where frequencies of interest (e.g., first and third harmonics) are selected. The frequencies are thus selected to estimate the energy in each frequency and to obtain a coarse picture of the spectrum signal.

In one embodiment, the HSC 530-1, 530-2 are illustrated separately for the purpose of explaining the derivation of first and third harmonic magnitudes. Various other HSC modules may also be included to obtain various other harmonic magnitudes. The HSC 530-1, 530-2 may not be limited to separate stages and can be implemented by a single HSC

In one embodiment, a multiplexer (MUX) 670 is controlled by the head height control module 415 to provide the HSC 530-1, 530-2 with outputs from the ADC 522. The multiplexer 670 is also controlled to provide the HSC 530-1, 530-2 with outputs from the Viterbi decoder 526. Outputs of the Viterbi decoder 526 may be referred to as non-return-to-zero (NRZ) bits. Further, HSC 530-1, 530-2 may selectively receive outputs of FIR filter 524 based on MUX selection.

The head height control module 415 may align the estimates of the first and third harmonics before Viterbi processing with estimates made after Viterbi processing. In other words, the head height control module 415 may remove time offset between HSC estimations for ADC module outputs and Viterbi decoder outputs.

Referring now to FIG. 3C, in one embodiment, the HSC 530-1, 530-2 estimate the first and third harmonics from ADC samples. HSC 530-3, 530-4 estimate the first and third harmonics, respectively for the samples after they are processed through the Viterbi decoder 526. The head height control module 415 may align the estimates of the first harmonic from the HSC 530-1 and the HSC 530-3. The head height control module 415 may also align the estimates of the third harmonic from the HSC 530-2 and the HSC 530-4. In other words, the head height control module 415 may remove time offset between ADC module outputs and Viterbi decoder outputs.

In one embodiment, the signal spectra are the first and third harmonic magnitudes of an applied signal. The output of HSC 530-1 is shown as (cos 1) and (sin 1). The output of HSC 530-2 is shown as (cos 2) and (sin 2). The head height control module 415 may express the magnitudes of the first and third harmonics: Fc Magnitude=√{square root over (sin₁ ²+cos₁ ²)}  (8) 3Fc Magnitude=√{square root over (sin₂ ²+cos₂ ²)}  (9)

While shown as (sin) and (cos) output components, the magnitudes may be calculated directly by HSC 530-1 or HSC 530-2.

The head height control module 415 may divide the Fourier transform of the ADC samples by the Fourier transform of the Viterbi decoder for each harmonic. The resulting quotient may equal an estimate of the channel response including an estimate of the original pulse convoluted with the output of the analog front end 520 (Pulse*AFE). For example,

$\begin{matrix} {\frac{{FT}({ADC})}{{FT}({NRZ})} = {{{FT}\left( {{Pulse}*{AFE}} \right)}.}} & (10) \end{matrix}$

After the spectrum of the bits (i.e., FT(NRZ)) is estimated based on the output of the Viterbi decoder 526, the estimate is divided out from the spectrum of the samples (i.e., FT(ADC)). The head height control module 415 normalizes (i.e., divides) the ADC spectrum by the NRZ spectrum to generate a relatively smooth estimate of the channel response.

In the present disclosure, the HSC 530-1, 530-2 generate estimates based on data that is not necessarily based on a predetermined pattern and that may or may not be random. For example, the ADC module 522 may provide digitized data that corresponds to written user data written in data sectors on the medium 107. In other words, the data may correspond to normal read data and not test track data and may be provided in real-time as the head 106 is reading the data.

The weighting function module 527 applies a weighting function in the time domain to inputs to the HSC 530-1, 530-2. Windowing corresponds to multiplication in the time domain, which is convolution in the frequency domain. In the frequency domain, the spectrum is a series of narrow sync functions over the frequencies of interest with side lobes at nearby frequencies.

Referring now to FIG. 4, examples of time domain window functions are illustrated. The window functions include a triangle window 550, a flat-top window 552 and a rectangular window 554. The windows 550, 552, 554 are illustrated over a plurality of samples (i.e., 4000 samples). In practice, the windows 550, 552, 554 may provide coefficients that are multiplied by respective ones of the incoming samples, thereby weighting the incoming samples.

The rectangular window 554 corresponds to a window, where all samples are given the same weight. The flat-top window 552 weights samples that are determined to correspond to frequencies of interest, such as first and third harmonics, according to a sine or cosine functions. The flat-top window 552 weights remaining samples substantially less (e.g., 0) than the samples for the frequencies of interest. The triangle window 550 may weight the samples according to a linearly increasing function and then a linearly decreasing function. The two functions may meet at samples that are determined to correspond to a frequency of interest. In other embodiments, almost any window function that weights samples for areas of interest greater than other samples may be used according to the present disclosure.

Referring now to FIG. 5, a comparison of window function spectra is illustrated. The spectrum 560 of the triangle window 550, the spectrum 562 of the flat-top window 552 and the spectrum 564 of the rectangular window 554 are illustrated. The main lobe 566 of the triangle window 550 has a smaller normalized frequency range than the main lobe 568 of the flat-top window 552 and the main lobe 570 of the rectangular window 554. The side lobes 582 of the triangle window 550 have smaller magnitudes than the side lobes 584 of the flat-top window 552 but larger magnitudes than the side lobes 586 of the rectangular window 554. In one embodiment, the frequency range of the main lobe and the magnitude of the side lobes may be minimized to minimize influence from frequencies that are not of interest.

In one embodiment, as in FIGS. 3B-C, the weighting function module 527 includes an integrator module 790 to implement the window function 550. For example, the integrator module 790 may provide a linearly changing output based on a constant. The integrator module 790 may therefore integrate the constant until the mid-point (e.g., halfway through the total amount of samples for a pulse) of the window 550 is reached. A subtraction module 792 may then subtract out integral values until zero (or some other initial state) is reached. The weighting function module 527 may multiply the changing coefficients by incoming samples.

Referring now to FIG. 6, as mentioned, dedicated tracks were, in the past, typically written on media with repeating test patterns. The repeating test patterns were then read out to determine density. An example of a repeating pattern is a 4T pattern, which includes four ones and four zeros repeating. T is the duration of one bit.

Previous HSC modules would generate estimates based on the 4T pattern as output from an ADC module. An example of harmonic ratios for HSC module outputs for various pulse densities is shown in Table 2 (provided below) and FIG. 6. In FIG. 6, HSC module harmonic ratios 600, 602, 604 are illustrated for a 4T pattern for densities K=0.8, 1 and 1.2, respectively.

TABLE 2 K f = ⅛ Fs f = ⅜ Fs Ratio 0.80 6.76  1.557 4.34 1.00 6.359 0.915 6.95 1.20 5.902 0.471 12.53 

Referring now to FIG. 7, the HSC 530-1, 530-2 may provide estimates that are not focused on frequencies of interest absent weighting of pulse data. For example, magnitude versus frequency for three random patterns 650, 652, 654 are illustrated. As can be seen, it may be difficult to render accurate approximations of pulse density based on the random patterns as compared with the 4T patterns of FIG. 6. In other words, FIG. 7 provides a graph of estimates for a system that does not include the 4T patterns of FIG. 6 or the weighting function module 527 of the present disclosure. The addition of the weighting of pulse data by the weighting function module 527 clarifies frequencies of interest, in contrast to the random patterns of FIG. 7. This is because particular frequencies are weighted by the weighting function module 527 so that other non-weighted frequencies do not substantially affect frequency analysis, unlike in FIG. 7.

Referring now to FIG. 8, for various random patterns, the magnitude of the outputs 700 of HSC 530-1 may be divided by the magnitude of the outputs 702 of HSC 530-2. The division results in ratios 704. FIG. 8 illustrates one hundred random patterns where each pattern has a length of one typical data sector. Each circle in FIG. 8 represents a measurement of the magnitude of the first harmonic, the third harmonic, or a ratio of the first and the third harmonics.

The ratios 704 include several outliers 708-1, 708-2, . . . , and 708-N (referred to as outliers 708). Further, from pattern to pattern, there are variations. The outliers 708 and variations are caused by changes in the pattern of a pulse from trial to trial. Thus, the amount of energy in the frequencies of interest (such as the first and third harmonics) changes for particular areas of a disk due to random data. The weighting function module 527 is included in the present disclosure to smooth out the curve 705 corresponding to the ratios 704 and remove the outliers 708.

In this manner, the reconstructed spectrum from random data may be used to estimate harmonic ratios (i.e. ratios of the magnitude of the output of the HSC 530-1 to the magnitude of the output of HSC 530-2, as represented by curve 705). As mentioned, a ratio of a low frequency in the pulse to a high frequency in the pulse, as represented in the frequency domain, may indicate a corresponding magnitude of pulse density, which corresponds to head height.

Referring now to FIG. 9, the head height control module 415 controls the distance between the head 106 and the storage medium 107. A head height estimation module 800 estimates current head height based on window adjusted signals from the HSC 530-1, 530-2, such as those illustrated in curve 705 of FIG. 8. For example, the head height estimation module 800 determines pulse density based on the HSC module signals and compares the pulse density to a previous pulse density. The head height estimation module 800 may determine changes in height based on differences between the stored pulse density and the current pulse density based on the HSC signals.

A head height adjustor module 802 determines what, if any, head height adjustments should be made based on the head height estimation from the head height estimation module 800. The head height adjustor module 802 may compare the estimated head height to a predetermined range of heights. If the fly height is too great (i.e., above the predetermined range), the signals transmitted and read by the head may be too weak for accurate data storage and retrieval. If the fly height is too small (i.e., below the predetermined range), the head may physically contact the medium. Contacting the medium may cause physical damage to the medium and/or loss of the data stored on the medium. For example, if the head height adjustor module 802 determines that the head 106 is flying too low to the medium 107 such that impact may be imminent, the head height adjustor module may adjust the height of the head 106 upwards.

The head height control module 415 may also include a selector module 804 that selects frequencies for the HSC 530-1, 530-2 and that controls the multiplexer 670.

In one embodiment, the head height control module 415 may determine the ratio of the first harmonic to the third harmonic from HSCs and may translate the ratio into a corresponding pulse density. In an alternative embodiment, a single HSC estimates the sine and cosine components at one frequency. Head height is then measured by comparing the single frequency response to a pre-calculated or pre-calibrated level. Relative changes in head height may also be detected by detecting relative changes in the response at this single frequency.

Any processes descriptions or blocks in flow charts should be understood as representing specific aspects of module operation, or steps in the process. Alternate implementations are included within the scope of the exemplary embodiment of the present disclosure in which functions may be executed out of order from that shown or discussed, including substantially concurrently, depending upon the functionality involved.

The broad teachings of the disclosure can be implemented in a variety of forms. Therefore, while this disclosure includes particular examples, the true scope of the disclosure should not be so limited since other modifications will become apparent upon a study of the drawings, the specification, and the following claims. 

1. A fly height control system comprising: a weighting function module configured to apply coefficients from a window function in a time domain to digital samples to provide weighted samples, wherein a first of the coefficients is applied to a first of the digital samples and a second of the coefficients is applied to a second of the digital samples, and wherein the first of the coefficients has a first magnitude that is different than a second magnitude of the second of the coefficients; a harmonic sensor module configured to estimate a magnitude of a frequency in a frequency domain based on the weighted samples; and a head height control module configured to determine a height of a read/write head over a storage medium based on the magnitude of the frequency.
 2. The fly height control system of claim 1, wherein the frequency in the frequency domain is a first frequency, and wherein the harmonic sensor module is a first harmonic sensor module, the system further comprising: head height control module determines the height of the read/write head over the storage medium based on the magnitude of the first frequency and the magnitude of the second frequency.
 3. The fly height control system of claim 2, wherein the first harmonic sensor module performs a first discrete Fourier transform on the weighted samples to estimate the magnitude of the first frequency; and wherein the second harmonic sensor module performs a second discrete Fourier transform on the weighted samples to estimate the magnitude of the second frequency.
 4. The fly height control system of claim 2, further comprising a selection module configured to select the first frequency for the first harmonic sensor module and the second frequency for the second harmonic sensor module.
 5. The fly height control system of claim 2, wherein the head height control module determines the height of the read/write head over the storage medium based on a ratio of the magnitude of the first frequency to the magnitude of the second frequency.
 6. The fly height control system of claim 5, wherein the ratio of the magnitude of the first frequency to the magnitude of the second frequency corresponds to a pulse density.
 7. The fly height control system of claim 5, wherein the head height control module adjusts the height of the read/write head over the storage medium when the ratio indicates that the height of the read/write head over the storage medium is outside of a predetermined range.
 8. The fly height control system of claim 2, wherein the first frequency corresponds to a first harmonic of at least one data pulse from the read/write head, and the second frequency corresponds to a third harmonic of the at least one data pulse.
 9. The fly height control system of claim 2, wherein the digital samples are first digital samples and the weighted samples are first weighted samples, the system further comprising: a decoder module configured to provide second digital samples based on an estimation of data written to the storage medium, wherein the decoder module generates the estimation of the data written to the storage medium based on the first digital samples, and wherein the weighting function module applies the window function to the second digital samples to provide second weighted samples, and wherein the head height control module determines the height of the read/write head over the storage medium based on the first weighted samples and the second weighted samples.
 10. The fly height control system of claim 1, wherein the window function corresponds to at least one of a triangle window function and a flat-top window function.
 11. The fly height control system of claim 10, wherein the triangle window function corresponds to: a linearly increasing function that provides linearly increasing ones of the coefficients for a first plurality of the first digital samples, and a linearly decreasing function that provides linearly decreasing ones of the coefficients for a second plurality of the first digital samples.
 12. The fly height control system of claim 10, wherein the triangle window function corresponds to a quantized version of a triangle having a plurality of discrete levels.
 13. The fly height control system of claim 1, further comprising an analog-to-digital converter (ADC) configured to provide the digital samples from at least one data pulse from the read/write head.
 14. The fly height control system of claim 13, wherein the at least one data pulse corresponds to user data written to a data field on the storage medium.
 15. The fly height control system of claim 1, wherein the head height control module determines the height of the read/write head over the storage medium based on a comparison of the magnitude of the frequency to a reference.
 16. A fly height control method comprising: applying coefficients from a window function in a time domain to digital samples to provide weighted samples, wherein the digital samples are based on data from a read/write head, wherein a first of the coefficients is applied to a first of the digital samples and a second of the coefficients is applied to a second of the digital samples, and wherein the first of the coefficients has a first magnitude that is different than a second magnitude of the second of the coefficients; estimating a magnitude of a frequency in a frequency domain based on the weighted samples; determining an estimated height of the read/write head over a storage medium based on the magnitude of the frequency; and selectively adjusting a fly height of the read/write head over the storage medium based on the estimated height.
 17. The fly height control method of claim 16, wherein the frequency in the frequency domain is a first frequency, the method further comprising: estimating a magnitude of a second frequency in the frequency domain based on the weighted samples; determining the estimated height of the read/write head over the storage medium based on the magnitude of the first frequency and the magnitude of the second frequency; performing a first discrete Fourier transform on the weighted samples to estimate the magnitude of the first frequency; and performing a second discrete Fourier transform on the weighted samples to estimate the magnitude of the second frequency.
 18. The fly height control method of claim 17, further comprising determining the estimated height of the read/write head over the storage medium based on a ratio of the magnitude of the first frequency to the magnitude of the second frequency.
 19. The fly height control method of claim 18, further comprising adjusting the fly height of the read/write head over the storage medium when the ratio indicates that the estimated height of the read/write head over the storage medium is outside of a predetermined range.
 20. The fly height control method of claim 17, wherein the first frequency corresponds to a first harmonic of at least one data pulse from the read/write head, and the second frequency corresponds to a third harmonic of the at least one data pulse. 